import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [{
    path: "/",
    name: "Home",
    component: () => import("@/views/Home"),
    redirect: "/index",
    children: [{
        path: "/index",
        component: () => import("@/components/index")
      },
      {
        path: "/course",
        component: () => import("@/components/course")
      },
      {
        path: "/record",
        component: () => import("@/components/record")
      },
      {
        path: '/practise',
        component: () => import('@/components/practise'),
      },
      {
        path: '/person',
        component: () => import('@/components/person')
      },
      {
        path: '/point',
        component: () => import('@/components/point')
      },
      {
        path: '/paper-package',
        component: () => import('@/components/paper-package')
      },
    ]
  },
  // 杨婉婷
  // 一对一辅导
  {
    path: '/xiangqing',
    component: () => import('@/components/index/xiangqing')
  },
  // 搜索页面
 {
   path:"/search",
   component:()=>import('@/views/recorditem/search')
 },
//  教师详情页面
 {
   path:'/teacherdetail',
   component:()=>import('@/views/recorditem/teacherdetail')
 },
//  预定课程
 {
   path:"/orderitem",
   component:()=>import('@/views/recorditem/orderitem')
 },
//  客服小按钮
 {
   path:"/custome",
   component:()=>import('@/views/custome.vue')
 },
//  筛选
 {
  path:"/filtee",
  component:()=>import('@/views/recorditem/filtee')
},

  //刘广来 搜索页面 search.vue
  {
    path: "/search/Tow",
    component: () => import("@/components/course/search")
  },
  {
    path: "/QiuGaiSex",
    component: () => import("@/components/QiuGaiSex")
  },
  {
    path: "/xiuGais",
    component: () => import("@/components/xiuGaiClass")
  },
  {
    path: "/search",
    component: () => import('@/views/recorditem/search')
  },
  {
    path: "/orderitem",
    component: () => import('@/views/recorditem/orderitem')
  },
 
  //刘广来 搜索页面 search.vue
  {
    path: '/ydyfd',
    component: () => import('@/components/index/ydyfd')
  },
  {
    path: '/tsk',
    component: () => import('@/components/index/tsk')
  },




  //朱振虎
  {
    path: '/onetoone',
    component: () => import('@/views/recorditem/onetoone.vue')
  },
  {
    path: "/search",
      component: () => import('@/views/recorditem/search')
  },
{
  path: "/orderitem",
    component: () => import('@/views/recorditem/orderitem')
},
//刘广来 搜索页面 search.vue
{
  path: "/search",
    component: () => import("@/components/course/search")
},
{
  path: "/detailsPage",
    component: () => import("@/components/course/detailsPage")
},
{
  path: '/login',
    component: () => import('@/components/login')
},
{
  path: '/set-pass',
    component: () => import('@/components/set-pass')
},
{
  path: '/forget-pass',
    component: () => import('@/components/forget-pass')
  },
  {
    path: '/selfInfo',
    component: () => import('@/components/personCom/selfInfo')
  }
]

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes
});


export default router;